// replace the data area.
let data = `
1	3	1	120	-60
2	3	2	-170	-47
3	3	2	120	-60
4	3	3	-91	-70
5	3	3	75	-90
6	3	3	146	25
7	3	4	-160	16
8	3	4	-91	-70
9	3	4	75	-90
10	3	4	146	25
11	3	5	-160	16
12	3	5	-91	-70
13	3	5	75	-90
14	3	5	146	25
15	3	6	-160	16
16	3	6	-91	-70
17	3	6	75	-90
18	3	6	146	25
19	3	7	-160	16
20	3	7	-91	-70
21	3	7	75	-90
22	3	7	146	25
23	3	8	-160	16
24	3	8	-91	-70
25	3	8	75	-90
26	3	8	146	25
27	3	9	-160	16
28	3	9	-91	-70
29	3	9	75	-90
30	3	9	146	25
31	3	10	-160	16
32	3	10	-91	-70
33	3	10	75	-90
34	3	10	146	25
35	4	1	120	-60
36	4	2	-170	-47
37	4	2	120	-60
38	4	3	-91	-70
39	4	3	75	-90
40	4	3	146	25
41	4	4	-160	16
42	4	4	-91	-70
43	4	4	75	-90
44	4	4	146	25
45	4	5	-160	16
46	4	5	-91	-70
47	4	5	75	-90
48	4	5	146	25
49	4	6	-160	16
50	4	6	-91	-70
51	4	6	75	-90
52	4	6	146	25
53	4	7	-160	16
54	4	7	-91	-70
55	4	7	75	-90
56	4	7	146	25
57	4	8	-160	16
58	4	8	-91	-70
59	4	8	75	-90
60	4	8	146	25
61	4	9	-160	16
62	4	9	-91	-70
63	4	9	75	-90
64	4	9	146	25
65	4	10	-160	16
66	4	10	-91	-70
67	4	10	75	-90
68	4	10	146	25
69	5	1	120	-60
70	5	2	-170	-47
71	5	2	120	-60
72	5	3	-91	-70
73	5	3	75	-90
74	5	3	146	25
75	5	4	-160	16
76	5	4	-91	-70
77	5	4	75	-90
78	5	4	146	25
79	5	5	-160	16
80	5	5	-91	-70
81	5	5	75	-90
82	5	5	146	25
83	5	6	-160	16
84	5	6	-91	-70
85	5	6	75	-90
86	5	6	146	25
87	5	7	-160	16
88	5	7	-91	-70
89	5	7	75	-90
90	5	7	146	25
91	5	8	-160	16
92	5	8	-91	-70
93	5	8	75	-90
94	5	8	146	25
95	5	9	-160	16
96	5	9	-91	-70
97	5	9	75	-90
98	5	9	146	25
99	5	10	-160	16
100	5	10	-91	-70
101	5	10	75	-90
102	5	10	146	25`;

console.log(
  data.split(/\n/).filter(x => x.length).map(function(line) {
    let arr = line.split(/\s/).map(x => parseInt(x));
    return {
      chairId: arr[0], buildableId: arr[1], buildableLevel: arr[2], offsetX: arr[3], offsetY: arr[4]
    };
  }).map(x => '    ' + JSON.stringify(x)).join(',\n') + ',\n'
);

